﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="TeacherSearchForm.aspx.cs" Inherits="App_Commons_TeacherSearchForm" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<script type="text/javascript">
function selectTeacher(id,name)
    {

     var obj = opener.window.document.getElementById('<%=Request.QueryString["CONTROL_ID"]%>');
     var obj2 = opener.window.document.getElementById('<%=Request.QueryString["CONTROL_NAME"]%>');

     if(obj!=null && obj2!=null)
     {
        obj.value=id;
        obj2.value=name;

        window.close();
     }
    }
</script>
    <table class="table_border_line">
        <tr>
            <th colspan="3" align="left" style="text-align: left;">

                <script language="javascript">
                    (new TitleBar('SearchBar', '检索条件')).showBar();
                </script>

            </th>
        </tr>
        <tr>
        <td style="height: 20px; width: 65px;"></td>
        </tr>
        <tr>
        <td style="width: 65px; height: 15px"></td>
        <td style="width: 67px; height: 15px">
            教师编号：</td>
        <td style="height: 15px">
            <asp:TextBox ID="txtId" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="width: 65px; height: 15px">
            </td>
            <td style="width: 67px; height: 15px">
                教师姓名：</td>
            <td style="height: 15px">
                <asp:TextBox ID="txtName" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="width: 65px; height: 20px">
            </td>
            <td style="width: 67px; height: 20px">
                性别：</td>
            <td style="height: 20px">
                <asp:DropDownList ID="sex" runat="server" DataTextField="Content" DataValueField="DictNo" Width="155px">
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td style="width: 65px; height: 20px">
            </td>
            <td style="width: 67px; height: 20px">
                教师学历：</td>
            <td style="height: 20px">
                <asp:TextBox ID="XueLi" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="width: 65px; height: 20px">
            </td>
            <td style="width: 67px; height: 20px">
            </td>
            <td style="height: 20px">
            </td>
        </tr>
        <tr>
            <td style="width: 65px; height: 20px">
            </td>
            <td style="width: 67px; height: 20px">
            </td>
            <td style="height: 20px">
                <asp:Button ID="btnSeach" runat="server" CssClass="button"
                    Text="检 索" Width="60px" OnClick="btnSeach_Click" />
               </td>
        </tr>
    </table>
    <br />
    <table class="table_border_line">
    <tr>
    <td>
        <asp:GridView ID="viewSrhRst" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            CssClass="GridView_table" DataKeyNames="TeacherId" Width="100%" OnPageIndexChanging="viewSrhRst_PageIndexChanging"   OnRowDataBound="viewSrhRst_RowDataBound">
            <Columns>
             <asp:TemplateField HeaderText="选择" ShowHeader="False">
                    <ItemStyle CssClass="GridView_item_center" HorizontalAlign="Center" VerticalAlign="Middle" />
                    <HeaderStyle CssClass="GridView_head_grayblue" />
                    <ItemTemplate>
                        <asp:ImageButton ID="selectImg" runat="server" CausesValidation="False" CommandName="Select"
                            ImageUrl="~/images/info.gif" Text="" />
                    </ItemTemplate>
                </asp:TemplateField>  
                <asp:BoundField DataField="TeacherName" HeaderText="教师姓名">
                    <ItemStyle CssClass="GridView_item_center" />
                    <HeaderStyle CssClass="GridView_head_grayblue" Width="0px" />
                </asp:BoundField>
                <asp:BoundField DataField="Sex" HeaderText="教师性别">
                    <ItemStyle CssClass="GridView_item_center" />
                    <HeaderStyle CssClass="GridView_head_grayblue" />
                </asp:BoundField>
                <asp:BoundField DataField="TeacherXueli" HeaderText="教师学历">
                    <ItemStyle CssClass="GridView_item_center" />
                    <HeaderStyle CssClass="GridView_head_grayblue" />
                </asp:BoundField>

            </Columns>
            <PagerStyle HorizontalAlign="Right" />
        </asp:GridView>
    </td>
    </tr>
    </table>
</asp:Content>

